package On_class.L0220;

import java.util.Scanner;

public class No2_0220 {
    public static void main(String[] args){
        //输入
        System.out.println("输入数字");
        Scanner sc=new Scanner(System.in);
        int number=sc.nextInt();
        //反转输出
        int num=0;
        while (number>0){
            num=num*10+number%10;
            number/=10;

        }
        System.out.println(num);
    }
}
